<@override name="title">角色权限</@override> <@override name="content">
<div>
    <ul class="breadcrumb">
        <li><a href="#" id="navTitle">系统设置</a></li>
        <li><a href="./list">角色管理</a></li>
        <li><a href="#">权限配置</a></li>
    </ul>
    <form class="form-horizontal" role="form" method="post" id="editForm" action="./resource">
        <input type="hidden" name="roleId" value="${roleId}">
        <#list moduleMap?keys as module>
        <div class="form-group">
            <label class="col-sm-2 control-label">${module}</label>
            <div class="col-sm-10 js-line">
                <label class="checkbox-inline"> <input type="checkbox" name="all"><span>全部</span>
                </label>
                <#list moduleMap[module] as resource> <label class="checkbox-inline"> <input
                        type="checkbox" name="resource" value="${resource.uuid}"${resource.selected?string('checked','')}><span>${resource.name}</span>
                </label> </#list>
            </div>
        </div>
        </#list>
        <div class="form-group">
            <div class="col-sm-offset-6">
                <a type="button" class="btn btn-default" href="./list">取消</a>
                <button type="button" class="btn btn-success js-submit">保存</button>
            </div>
        </div>
    </form>
</div>
</@override> <@override name="scripts">
<script type="text/javascript" src="${request.contextPath}/js/bg/role.resource.js"></script>
</@override> <@extends name="../base.html" />
